package org.example.Entity;

public class Score extends Dto{
    private int id;
    //学生ID
    private String studentId;
    //课程ID
    private int courseId;
    //成绩
    private double scores;
    //将课程表注入成绩表
    private Course course;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public double getScores() {
        return scores;
    }

    public void setScores(double scores) {
        this.scores = scores;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public String getStudentId(String studentId) {
        return this.studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    @Override
    public String toString() {
        return "Score{" +
                "id=" + id +
                ", studentId='" + studentId + '\'' +
                ", courseId=" + courseId +
                ", scores=" + scores +
                ", course=" + course +
                '}';
    }
}
